package com.joinway.framework.extension.net.ftp;

import com.joinway.framework.extension.net.type.FtpMode;

public class FtpClientConfig {

	protected int port = 21;
	
	protected String username = "anonymous";
	
	protected String password = "";
	
	protected FtpMode mode = FtpMode.Passive;

	protected int dataTimeout = 30;		// in seconds
	
	protected int defaultTimeout = 30;	// in seconds
	
	protected int connectTimeout = 30;	// in seconds		

	protected int retryCount = 3;
	
	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public FtpMode getMode() {
		return mode;
	}

	public void setMode(FtpMode mode) {
		this.mode = mode;
	}

	public int getDataTimeout() {
		return dataTimeout;
	}

	public void setDataTimeout(int dataTimeout) {
		this.dataTimeout = dataTimeout;
	}

	public int getDefaultTimeout() {
		return defaultTimeout;
	}

	public void setDefaultTimeout(int defaultTimeout) {
		this.defaultTimeout = defaultTimeout;
	}

	public int getConnectTimeout() {
		return connectTimeout;
	}

	public void setConnectTimeout(int connectTimeout) {
		this.connectTimeout = connectTimeout;
	}

	public int getRetryCount() {
		return retryCount;
	}

	public void setRetryCount(int retryCount) {
		this.retryCount = retryCount;
	}
	
}
